<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>小米商城后台管理系统</title>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/type.css" />
<script type="text/javascript" src="__PUBLIC__/js/admin.js"></script>

<body>
<br>
<br>
<table class="classify_table1">
<form method="post">
<input type="hidden" value="{$me['GoodcategoryId']}" name="GoodcategoryId" />
	<tr>
		<td><span class="classify_table_title">编辑分类</span> <span
			class="classify_table_button"> <input type="submit" value="保存">
		</span> <span class="classify_table_button">
		<button><a href="__CONTROLLER__/index">返回</a></button>
		</span></td>
	</tr>
	<tr>
		<td>
		<div class="tab"><span>分类名称： <input type="text"
			value="{$me['CategoryName']}" name="CategoryName" /></span><br>
		<span>上级分类： <select name="level">
			<option value="0">顶级分类</option>
			<foreach name="tree" item="v">
			<neq name="v.GoodcategoryId" value="$me.GoodcategoryId">
			<!-- neq是不等于，即v.CategoryName不等于$me.GoodcategoryId时，执行下面代码。为的是不让列表中显示自己，不能自己当自己的上级类别 -->
			<option value="{$v.GoodcategoryId}"<eq
				name="v.GoodcategoryId" value="$me.level">selected</eq> >
			{:str_repeat('&nbsp;&nbsp;&nbsp;&nbsp;',$v['deep']).$v['CategoryName']}
			</option>
			</neq>
			</foreach>
		</select> </span> <br>
		</div>
		</td>
	</tr>
</table>
</form>

</body>
</html>